home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_bas / t2win_32.zip / T2WIN-32.BAS < prev    next >
BASIC Source File  |  1996-05-14  |  85KB  |  1,295 lines

  1. Attribute VB_Name = "T2WIN_32_DEF"
  2. Option Explicit
  3.  
  4. ' object
  5.  
  6. Declare Function cObjectGetBoolean Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String) As Boolean
  7. Declare Function cObjectGetByte Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String) As Byte
  8. Declare Function cObjectGetInteger Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String) As Integer
  9. Declare Function cObjectGetLong Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String) As Long
  10. Declare Function cObjectGetString Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String) As String
  11. Declare Function cObjectGetStringW Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String) As String
  12. Declare Function cObjectGetVariant Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String) As Variant
  13. Declare Function cObjectGetIndex Lib "t2win-32.dll" (ByVal Obj As Object) As Integer
  14.  
  15. Declare Function cGetObjCaption Lib "t2win-32.dll" (ByVal Obj As Object) As String
  16. Declare Function cGetObjContainer Lib "t2win-32.dll" (ByVal Obj As Object) As String
  17. Declare Function cGetObjParent Lib "t2win-32.dll" (ByVal Obj As Object) As String
  18. Declare Function cGetObjTag Lib "t2win-32.dll" (ByVal Obj As Object) As String
  19. Declare Function cGetObjText Lib "t2win-32.dll" (ByVal Obj As Object) As String
  20. Declare Function cGetObjDataField Lib "t2win-32.dll" (ByVal Obj As Object) As String
  21. Declare Function cGetObjDataSource Lib "t2win-32.dll" (ByVal Obj As Object) As String
  22. Declare Function cGetObjName Lib "t2win-32.dll" (ByVal Obj As Object) As String
  23. Declare Function cGetObjIndex Lib "t2win-32.dll" (ByVal Obj As Object) As Integer
  24. Declare Function cGetObjNameIndex Lib "t2win-32.dll" (ByVal Obj As Object) As String
  25. Declare Function cGetObjClassName Lib "t2win-32.dll" (ByVal Obj As Object) As String
  26.  
  27. Declare Sub cObjectPutBoolean Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String, ByVal Value As Boolean)
  28. Declare Sub cObjectPutByte Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String, ByVal Value As Byte)
  29. Declare Sub cObjectPutInteger Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String, ByVal Value As Integer)
  30. Declare Sub cObjectPutLong Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String, ByVal Value As Long)
  31. Declare Sub cObjectPutString Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String, ByVal Value As String)
  32. Declare Sub cObjectPutVariant Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Property As String, ByVal Value As Variant)
  33.  
  34. Declare Sub cPutObjCaption Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Value As String)
  35. Declare Sub cPutObjDataField Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Value As String)
  36. Declare Sub cPutObjDataSource Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Value As String)
  37. Declare Sub cPutObjTag Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Value As String)
  38. Declare Sub cPutObjText Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Value As String)
  39.  
  40. Declare Sub cObjectMethod Lib "t2win-32.dll" (ByVal Obj As Object, ByVal Method As String, ByVal Value As Variant)
  41.  
  42. Declare Sub cDisableFI Lib "t2win-32.dll" (ByVal Obj As Object)
  43. Declare Sub cEnableFI Lib "t2win-32.dll" (ByVal Obj As Object)
  44.  
  45. Declare Function cCloseAllEditForm Lib "t2win-32.dll" () As Integer
  46. Declare Function cHideAllEditForm Lib "t2win-32.dll" () As Integer
  47. Declare Function cHideDebugForm Lib "t2win-32.dll" () As Integer
  48. Declare Function cUnHideAllEditForm Lib "t2win-32.dll" () As Integer
  49. Declare Function cUnHideDebugForm Lib "t2win-32.dll" () As Integer
  50.  
  51. Declare Sub cEnableForm Lib "t2win-32.dll" (ByVal hWnd As Long)
  52. Declare Sub cEnableRedraw Lib "t2win-32.dll" (ByVal hWnd As Long)
  53. Declare Sub cObjEnableRedraw Lib "t2win-32.dll" (ByVal Obj As Object)
  54. Declare Sub cDisableForm Lib "t2win-32.dll" (ByVal hWnd As Long)
  55. Declare Sub cDisableRedraw Lib "t2win-32.dll" (ByVal hWnd As Long)
  56. Declare Sub cObjDisableRedraw Lib "t2win-32.dll" (ByVal Obj As Object)
  57.  
  58. ' windows 95
  59.  
  60. '  structure for windows 95 memory
  61. Type tagMEMORYSTATUS
  62.    dwLength             As Long        'sizeof(MEMORYSTATUS)
  63.    dwMemoryLoad         As Long        'percent of memory in use
  64.    dwTotalPhys          As Long        'bytes of physical memory
  65.    dwAvailPhys          As Long        'free physical memory bytes
  66.    dwTotalPageFile      As Long        'bytes of paging file
  67.    dwAvailPageFile      As Long        'free bytes of paging file
  68.    dwTotalVirtual       As Long        'user bytes of address space
  69.    dwAvailVirtual       As Long        'free user bytes
  70. End Type
  71.  
  72. Declare Sub cMemoryStatus Lib "t2win-32.dll" (MEMORYSTATUS As tagMEMORYSTATUS)
  73. Declare Function cPBFileCopy Lib "t2win-32.dll" (ByVal hWndParent As Long, ByVal FileNameIn As String, ByVal FileNameOut As String) As Integer
  74. Declare Function cDBFileCopy Lib "t2win-32.dll" (ByVal Title As String, ByVal CaptionFrom As String, ByVal CaptionTo As String, ByVal CaptionButton As String, ByVal FileNameIn As String, ByVal FileNameOut As String) As Integer
  75.  
  76. ' file
  77.  
  78. '  definition for error type for ISFileNameVALID
  79. Public Const IFV_ERROR = 0
  80. Public Const IFV_NAME_TOO_LONG = 1
  81. Public Const IFV_EXT_TOO_LONG = 2
  82. Public Const IFV_TOO_MANY_BACKSLASH = 3
  83. Public Const IFV_BAD_DRIVE_LETTER = 4
  84. Public Const IFV_BAD_COLON_POS = 5
  85. Public Const IFV_EXT_WITHOUT_NAME = 6
  86.  
  87. ' definition for sFile attributes
  88. Public Const A_RDONLY = &H1             'Read only file
  89. Public Const A_HIDDEN = &H2             'Hidden file
  90. Public Const A_SYSTEM = &H4             'System file
  91. Public Const A_SUBDIR = &H10            'Subdirectory
  92. Public Const A_ARCHIVE = &H20           'Archive file
  93. Public Const A_NORMAL = &H80            'Normal sFile - No read/write restrictions
  94. Public Const A_COMPRESSED = &H800       'Compressed file
  95. Public Const A_NORMAL_ARCHIVE = &HFE    'Normal, Archive
  96. Public Const A_ALL = &HFF               'Normal, Archive, Read-Only, Hidden, System
  97.  
  98. ' definition for drive type
  99. Public Const DRIVE_UNKNOWN = 0
  100. Public Const DRIVE_NO_ROOT_DIR = 1
  101. Public Const DRIVE_REMOVABLE = 2
  102. Public Const DRIVE_FIXED = 3
  103. Public Const DRIVE_REMOTE = 4
  104. Public Const DRIVE_CDROM = 5
  105. Public Const DRIVE_RAMDISK = 6
  106.  
  107. '  definition for sFile sort
  108. Public Const SORT_ASCENDING = 1
  109. Public Const SORT_DESCENDING = 2
  110. Public Const SORT_CASE_SENSITIVE = 4
  111. Public Const SORT_CASE_INSENSITIVE = 8
  112.  
  113. ' definition for sFile I/O
  114. Public Const EOFILE = -1
  115. Public Const SEEK_CUR = 1
  116. Public Const SEEK_END = 2
  117. Public Const SEEK_SET = 0
  118.  
  119. ' definition for sFile uucp
  120. Public Const MODE_UUENCODE = 0
  121. Public Const MODE_UUDECODE = 1
  122.  
  123. '  structure for sFile attributes
  124. Type FileAttributeType
  125.    ErrNo             As Integer
  126.    Archive           As Integer
  127.    Hidden            As Integer
  128.    Normal            As Integer
  129.    ReadOnly          As Integer
  130.    SubDir            As Integer
  131.    System            As Integer
  132.    Compressed        As Integer
  133. End Type
  134.  
  135. '  structure for split path
  136. Type tagSPLITPATH
  137.    nDrive            As String
  138.    nDir              As String
  139.    nName             As String
  140.    nExt              As String
  141. End Type
  142.  
  143. Declare Function cAllSubDirectories Lib "t2win-32.dll" (ByVal lpBaseDirectory As String, nDir As Long) As String
  144. Declare Function cChDir Lib "t2win-32.dll" (ByVal lpDir As String) As Integer
  145. Declare Function cChDrive Lib "t2win-32.dll" (ByVal lpDrive As String) As Integer
  146. Declare Function cCmpFileAttribute Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Integer
  147. Declare Function cCmpFileContents Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, ByVal Sensitivity As Integer) As Integer
  148. Declare Function cCmpFileSize Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Integer
  149. Declare Function cCmpFileTime Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Integer
  150. Declare Function cCountDirectories Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  151. Declare Function cCountFiles Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  152. Declare Function cFileSize Lib "t2win-32.dll" (ByVal lpFilename As String) As Long
  153. Declare Function cIsFilenameValid Lib "t2win-32.dll" Alias "cIsFileNameValid" (ByVal nFilename As String) As Integer
  154. Declare Function cKillDir Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  155. Declare Function cKillDirFilesAll Lib "t2win-32.dll" (ByVal lpDir As String, ByVal lpMask As String) As Integer
  156. Declare Function cKillDirs Lib "t2win-32.dll" (ByVal lpDir As String, ByVal HeaderDirectory As Integer) As Integer
  157. Declare Function cKillFile Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  158. Declare Function cKillFileAll Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  159. Declare Function cKillFiles Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  160. Declare Function cKillFilesAll Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  161. Declare Function cMakeDir Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  162. Declare Function cMakeMultipleDir Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  163. Declare Function cFileResetAllAttrib Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  164. Declare Function cFileResetArchive Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  165. Declare Function cFileResetFlag Lib "t2win-32.dll" (ByVal nFilename As String, ByVal nStatus As Integer) As Integer
  166. Declare Function cFileResetHidden Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  167. Declare Function cFileResetReadOnly Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  168. Declare Function cFileResetSystem Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  169. Declare Function cFileSetAllAttrib Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  170. Declare Function cFileSetArchive Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  171. Declare Function cFileSetAttrib Lib "t2win-32.dll" (ByVal nFilename As String, nFileAttribute As Any) As Integer
  172. Declare Function cFileSetFlag Lib "t2win-32.dll" (ByVal nFilename As String, ByVal nStatus As Integer) As Integer
  173. Declare Function cFileSetHidden Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  174. Declare Function cFileSetReadOnly Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  175. Declare Function cFileSetSystem Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  176. Declare Function cUniqueFileName Lib "t2win-32.dll" (Txt As String) As String
  177. Declare Function cFileCopy Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Long
  178. Declare Function cFileCopy2 Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Long
  179. Declare Function cFileDrive Lib "t2win-32.dll" (ByVal lpFilename As String) As String
  180. Declare Function cFileGetAttrib Lib "t2win-32.dll" (ByVal nFilename As String, nFileAttribute As Any) As Integer
  181. Declare Function cFileMove Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Long
  182. Declare Function cFilePathExists Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  183. Declare Function cFilesSize Lib "t2win-32.dll" (ByVal nFilename As String) As Long
  184. Declare Function cFilesSizeOnDisk Lib "t2win-32.dll" (ByVal nFilename As String) As Long
  185. Declare Function cFilesSlack Lib "t2win-32.dll" (ByVal nFilename As String, Size1 As Long, Size2 As Long) As Integer
  186. Declare Function cGetDiskClusterSize Lib "t2win-32.dll" (ByVal lpDrive As String) As Long
  187. Declare Function cGetDiskFree Lib "t2win-32.dll" (ByVal lpDrive As String) As Long
  188. Declare Function cGetDiskSpace Lib "t2win-32.dll" (ByVal lpDrive As String) As Long
  189. Declare Function cGetDiskUsed Lib "t2win-32.dll" (ByVal lpDrive As String) As Long
  190. Declare Function cRcsCountFileDir Lib "t2win-32.dll" (ByVal FileOrDir As Integer, ByVal FirstFileOrDir As String, ByVal MaskDir As String, ByVal Recurse As Integer) As Integer
  191. Declare Function cRcsFilesSize Lib "t2win-32.dll" (ByVal FirstDir As String, ByVal MaskDir As String, ByVal Recurse As Integer) As Long
  192. Declare Function cRcsFilesSizeOnDisk Lib "t2win-32.dll" (ByVal FirstDir As String, ByVal MaskDir As String, ByVal Recurse As Integer) As Long
  193. Declare Function cRcsFilesSlack Lib "t2win-32.dll" (ByVal FirstDir As String, ByVal MaskDir As String, ByVal Recurse As Integer, Size1 As Long, Size2 As Long) As Integer
  194. Declare Function cSubDirectory Lib "t2win-32.dll" (ByVal nFilename As String, ByVal FirstNext As Integer) As String
  195. Declare Function cFileChangeChars Lib "t2win-32.dll" (ByVal nFilename As String, CharSet As String, NewCharSet As String, ByVal nFileTemp As String) As Long
  196. Declare Function cFileCompressTab Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, ByVal nTab As Long) As Long
  197. Declare Function cFileExpandTab Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, ByVal nTab As Long) As Long
  198. Declare Function cFileFilter Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, Filter As String) As Long
  199. Declare Function cFileFilterNot Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, Filter As String) As Long
  200. Declare Function cFileLineCount Lib "t2win-32.dll" (ByVal lpFilename As String) As Long
  201. Declare Function cFileMerge Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, ByVal fileTo As String) As Long
  202. Declare Function cFileSearch Lib "t2win-32.dll" (ByVal nFilename As String, ByVal Search As String, ByVal Sensitivity As Integer) As Long
  203. Declare Function cFileSearchAndReplace Lib "t2win-32.dll" (ByVal nFilename As String, ByVal Search As String, ByVal Replace As String, ByVal nFileTemp As String, ByVal Sensitivity As Integer) As Long
  204. Declare Function cFileSearchCount Lib "t2win-32.dll" (ByVal nFilename As String, ByVal Search As String, ByVal Sensitivity As Integer) As Long
  205. Declare Function cFileToUpper Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Long
  206. Declare Function cFileToLower Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Long
  207. Declare Function cTruncatePath Lib "t2win-32.dll" (ByVal nFilename As String, ByVal NewLength As Long) As String
  208. Declare Function cFullPath Lib "t2win-32.dll" (ByVal nFilename As String) As String
  209. Declare Function cMakePath Lib "t2win-32.dll" (ByVal nDrive As String, ByVal nDir As String, ByVal nFilename As String, ByVal Ext As String) As String
  210. Declare Function cSplitPath Lib "t2win-32.dll" (ByVal nFilename As String, SPLITPATH As Any) As Integer
  211. Declare Function cFileDateCreated Lib "t2win-32.dll" (ByVal lpFilename As String) As String
  212. Declare Function cFileLastDateAccess Lib "t2win-32.dll" (ByVal lpFilename As String) As String
  213. Declare Function cFileLastDateModified Lib "t2win-32.dll" (ByVal lpFilename As String) As String
  214. Declare Function cFileTimeCreated Lib "t2win-32.dll" (ByVal lpFilename As String) As String
  215. Declare Function cFileLastTimeAccess Lib "t2win-32.dll" (ByVal lpFilename As String) As String
  216. Declare Function cFileLastTimeModified Lib "t2win-32.dll" (ByVal lpFilename As String) As String
  217. Declare Function cGetDriveType Lib "t2win-32.dll" (ByVal lpDrive As String) As Integer
  218. Declare Function cFileSort Lib "t2win-32.dll" (ByVal FileIn As String, ByVal FileOut As String, ByVal SortMethod As Integer, ByVal RecordLength As Long, ByVal KeyOffset As Long, ByVal KeyLength As Long, rRecords As Long) As Long
  219. Declare Function cFileStatistics Lib "t2win-32.dll" (ByVal nFilename As String, nLines As Long, nWords As Long, nChars As Long) As Long
  220. Declare Function cFilesInDirectory Lib "t2win-32.dll" (ByVal nFilename As String, ByVal FirstNext As Integer) As String
  221. Declare Function cFilesInDirOnDisk Lib "t2win-32.dll" (ByVal nFile As String, ByVal nFilename As String, ByVal nAttribute As Integer) As Integer
  222. Declare Function cFilesInDirToArray Lib "t2win-32.dll" (ByVal nFilename As String, ByVal nAttribute As Integer, array() As String) As Integer
  223. Declare Function cRenameFile Lib "t2win-32.dll" (ByVal lpFilename1 As String, ByVal lpFilename2 As String) As Integer
  224. Declare Function cSearchFile Lib "t2win-32.dll" (ByVal lpStartPath As String, ByVal lpFileMask As String, ByVal lpFileResult As String) As Long
  225. Declare Function cFileUUCP Lib "t2win-32.dll" (ByVal lpFilename1 As String, ByVal lpFilename2 As String, ByVal EncodeDecode As Integer) As Long
  226.  
  227. ' binary
  228.  
  229. Declare Function cCreateBits Lib "t2win-32.dll" (ByVal nBits As Long) As String
  230. Declare Function cFindBitReset Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As Long
  231. Declare Function cFindBitSet Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As Long
  232. Declare Function cGetBit Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As Integer
  233. Declare Function cGiveBitPalindrome Lib "t2win-32.dll" () As String
  234. Declare Function cIsBitPalindrome Lib "t2win-32.dll" (Txt As String) As Integer
  235. Declare Sub cReverseAllBits Lib "t2win-32.dll" (Txt As String)
  236. Declare Sub cReverseAllBitsByChar Lib "t2win-32.dll" (Txt As String)
  237. Declare Sub cSetAllBits Lib "t2win-32.dll" (Txt As String, ByVal Value As Integer)
  238. Declare Sub cSetBit Lib "t2win-32.dll" (Txt As String, ByVal Position As Long, ByVal Value As Integer)
  239. Declare Sub cSetBitToFalse Lib "t2win-32.dll" (Txt As String, ByVal Position As Long)
  240. Declare Sub cSetBitToTrue Lib "t2win-32.dll" (Txt As String, ByVal Position As Long)
  241. Declare Sub cToggleAllBits Lib "t2win-32.dll" (Txt As String)
  242. Declare Sub cToggleBit Lib "t2win-32.dll" (Txt As String, ByVal Position As Long)
  243. Declare Function cB2I Lib "t2win-32.dll" (ByVal Txt As String) As Integer
  244. Declare Function cB2L Lib "t2win-32.dll" (ByVal Txt As String) As Long
  245. Declare Function cFromBinary Lib "t2win-32.dll" (Text As String) As String
  246. Declare Function cFromBinary2 Lib "t2win-32.dll" (Text As String, Bin As String) As String
  247. Declare Function cToBinary Lib "t2win-32.dll" (Text As String) As String
  248. Declare Function cToBinary2 Lib "t2win-32.dll" (Text As String, Bin As String) As String
  249.  
  250. ' compress
  251.  
  252. Declare Function cFileCompress Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Long
  253. Declare Function cFileExpand Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String) As Long
  254. Declare Function cStringCompress Lib "t2win-32.dll" (Txt As String) As String
  255. Declare Function cStringExpand Lib "t2win-32.dll" (Txt As String) As String
  256.  
  257. ' timer
  258.  
  259. Declare Function cCheckWait Lib "t2win-32.dll" (ByVal nTimer As Integer) As Integer
  260. Declare Function cReadBasisTimer Lib "t2win-32.dll" () As Long
  261. Declare Function cReadTimer Lib "t2win-32.dll" (ByVal nTimer As Integer) As Long
  262. Declare Sub cSetWait Lib "t2win-32.dll" (ByVal nTimer As Integer, ByVal nValue As Long)
  263. Declare Function cSleep Lib "t2win-32.dll" (ByVal delay As Long) As Integer
  264. Declare Sub cStartBasisTimer Lib "t2win-32.dll" ()
  265. Declare Sub cStartTimer Lib "t2win-32.dll" (ByVal nTimer As Integer)
  266. Declare Sub cStartWait Lib "t2win-32.dll" (ByVal nTimer As Integer)
  267. Declare Sub cStopBasisTimer Lib "t2win-32.dll" ()
  268. Declare Function cStopTimer Lib "t2win-32.dll" (ByVal nTimer As Integer) As Long
  269. Declare Function cTimerClose Lib "t2win-32.dll" (ByVal TimerHandle As Integer) As Integer
  270. Declare Function cTimerOpen Lib "t2win-32.dll" () As Integer
  271. Declare Function cTimerRead Lib "t2win-32.dll" (ByVal TimerHandle As Integer) As Long
  272. Declare Function cTimerStart Lib "t2win-32.dll" (ByVal TimerHandle As Integer) As Integer
  273.  
  274. ' array
  275.  
  276. '  definition for array on disk
  277. Public Const PUT_ARRAY_ON_DISK = 0
  278. Public Const GET_ARRAY_ON_DISK = 1
  279.  
  280. '  structure for VB array
  281. Type ArrayType
  282.    Bounds            As Long
  283.    LBound            As Integer
  284.    UBound            As Integer
  285.    ElemSize          As Integer
  286.    IndexCount        As Integer
  287.    TotalElem         As Integer
  288. End Type
  289.  
  290. Declare Function cAddD Lib "t2win-32.dll" (array() As Double, ByVal nValue As Double) As Integer
  291. Declare Function cAddI Lib "t2win-32.dll" (array() As Integer, ByVal nValue As Integer) As Integer
  292. Declare Function cAddL Lib "t2win-32.dll" (array() As Long, ByVal nValue As Long) As Integer
  293. Declare Function cAddS Lib "t2win-32.dll" (array() As Single, ByVal nValue As Single) As Integer
  294. Declare Function cArrayOnDisk Lib "t2win-32.dll" (ByVal sFile As String, array() As Any, ByVal GetPut As Integer) As Long
  295. Declare Function cArrayPrm Lib "t2win-32.dll" (array() As Any, nArray As ArrayType) As Integer
  296. Declare Function cArrayStringOnDisk Lib "t2win-32.dll" (ByVal sFile As String, array() As String, ByVal GetPut As Integer, rRecords As Long) As Long
  297. Declare Function cCountD Lib "t2win-32.dll" (array() As Double, ByVal Value As Double) As Long
  298. Declare Function cCountI Lib "t2win-32.dll" (array() As Integer, ByVal Value As Integer) As Long
  299. Declare Function cCountL Lib "t2win-32.dll" (array() As Long, ByVal Value As Long) As Long
  300. Declare Function cCountS Lib "t2win-32.dll" (array() As Single, ByVal Value As Single) As Long
  301. Declare Function cDeviationD Lib "t2win-32.dll" (array() As Double) As Double
  302. Declare Function cDeviationI Lib "t2win-32.dll" (array() As Integer) As Double
  303. Declare Function cDeviationL Lib "t2win-32.dll" (array() As Long) As Double
  304. Declare Function cDeviationS Lib "t2win-32.dll" (array() As Single) As Double
  305. Declare Function cFillD Lib "t2win-32.dll" (array() As Double, ByVal nValue As Double) As Integer
  306. Declare Function cFillI Lib "t2win-32.dll" (array() As Integer, ByVal nValue As Integer) As Integer
  307. Declare Function cFillL Lib "t2win-32.dll" (array() As Long, ByVal nValue As Long) As Integer
  308. Declare Function cFillS Lib "t2win-32.dll" (array() As Single, ByVal nValue As Single) As Integer
  309. Declare Function cFillIncrD Lib "t2win-32.dll" (array() As Double, ByVal nValue As Double, ByVal Increment As Double) As Integer
  310. Declare Function cFillIncrI Lib "t2win-32.dll" (array() As Integer, ByVal nValue As Integer, ByVal Increment As Integer) As Integer
  311. Declare Function cFillIncrL Lib "t2win-32.dll" (array() As Long, ByVal nValue As Long, ByVal Increment As Long) As Integer
  312. Declare Function cFillIncrS Lib "t2win-32.dll" (array() As Single, ByVal nValue As Single, ByVal Increment As Single) As Integer
  313. Declare Function cMaxD Lib "t2win-32.dll" (array() As Double) As Double
  314. Declare Function cMaxI Lib "t2win-32.dll" (array() As Integer) As Integer
  315. Declare Function cMaxL Lib "t2win-32.dll" (array() As Long) As Long
  316. Declare Function cMaxS Lib "t2win-32.dll" (array() As Single) As Single
  317. Declare Function cMeanD Lib "t2win-32.dll" (array() As Double) As Double
  318. Declare Function cMeanI Lib "t2win-32.dll" (array() As Integer) As Double
  319. Declare Function cMeanL Lib "t2win-32.dll" (array() As Long) As Double
  320. Declare Function cMeanS Lib "t2win-32.dll" (array() As Single) As Double
  321. Declare Function cMinD Lib "t2win-32.dll" (array() As Double) As Double
  322. Declare Function cMinI Lib "t2win-32.dll" (array() As Integer) As Integer
  323. Declare Function cMinL Lib "t2win-32.dll" (array() As Long) As Long
  324. Declare Function cMinS Lib "t2win-32.dll" (array() As Single) As Single
  325. Declare Function cReverseSortD Lib "t2win-32.dll" (array() As Double) As Integer
  326. Declare Function cReverseSortI Lib "t2win-32.dll" (array() As Integer) As Integer
  327. Declare Function cReverseSortL Lib "t2win-32.dll" (array() As Long) As Integer
  328. Declare Function cReverseSortS Lib "t2win-32.dll" (array() As Single) As Integer
  329. Declare Function cSearchI Lib "t2win-32.dll" (array() As Integer, ByVal Value As Integer) As Long
  330. Declare Function cSearchL Lib "t2win-32.dll" (array() As Long, ByVal Value As Long) As Long
  331. Declare Function cSearchS Lib "t2win-32.dll" (array() As Single, ByVal Value As Single) As Long
  332. Declare Function cSearchD Lib "t2win-32.dll" (array() As Double, ByVal Value As Double) As Long
  333. Declare Function cSetD Lib "t2win-32.dll" (array() As Double, ByVal nValue As Double) As Integer
  334. Declare Function cSetI Lib "t2win-32.dll" (array() As Integer, ByVal nValue As Integer) As Integer
  335. Declare Function cSetL Lib "t2win-32.dll" (array() As Long, ByVal nValue As Long) As Integer
  336. Declare Function cSetS Lib "t2win-32.dll" (array() As Single, ByVal nValue As Single) As Integer
  337. Declare Function cSortD Lib "t2win-32.dll" (array() As Double) As Integer
  338. Declare Function cSortI Lib "t2win-32.dll" (array() As Integer) As Integer
  339. Declare Function cSortL Lib "t2win-32.dll" (array() As Long) As Integer
  340. Declare Function cSortS Lib "t2win-32.dll" (array() As Single) As Integer
  341. Declare Function cSumD Lib "t2win-32.dll" (array() As Double) As Double
  342. Declare Function cSumI Lib "t2win-32.dll" (array() As Integer) As Double
  343. Declare Function cSumL Lib "t2win-32.dll" (array() As Long) As Double
  344. Declare Function cSumS Lib "t2win-32.dll" (array() As Single) As Double
  345.  
  346. ' ieeenum
  347.  
  348. Declare Function cCVB Lib "t2win-32.dll" (Value As String) As Byte
  349. Declare Function cCVC Lib "t2win-32.dll" (Value As String) As Currency
  350. Declare Function cCVD Lib "t2win-32.dll" (Value As String) As Double
  351. Declare Function cCVI Lib "t2win-32.dll" (Value As String) As Integer
  352. Declare Function cCVL Lib "t2win-32.dll" (Value As String) As Long
  353. Declare Function cCVS Lib "t2win-32.dll" (Value As String) As Single
  354. Declare Function cMKB Lib "t2win-32.dll" (ByVal Value As Byte) As String
  355. Declare Function cMKC Lib "t2win-32.dll" (ByVal Value As Currency) As String
  356. Declare Function cMKD Lib "t2win-32.dll" (ByVal Value As Double) As String
  357. Declare Function cMKI Lib "t2win-32.dll" (ByVal Value As Integer) As String
  358. Declare Function cMKL Lib "t2win-32.dll" (ByVal Value As Long) As String
  359. Declare Function cMKN Lib "t2win-32.dll" (ByVal Value As String) As String
  360. Declare Function cMKS Lib "t2win-32.dll" (ByVal Value As Single) As String
  361.  
  362. ' disk array
  363.  
  364. '  structure for disk array
  365. Type tagDISKARRAY
  366.    daSize            As Integer           'size of the type'd
  367.    signature         As String * 7        'signature
  368.    nFilename         As String * 128      'name of the file
  369.    nType             As Integer           'variable type
  370.    nRows             As Long              'number of rows
  371.    nCols             As Long              'number of cols
  372.    nSheets           As Long              'number of sheets
  373.    rHandle           As Long              'returned handle for use with other functions
  374.    rElementSize      As Long              'returned size of a element
  375.    rFileSize         As Long              'returned size of the file
  376.    rParts            As Long              'returned total part
  377.    rRemain           As Long              'returned size of the remain part
  378.    rSheetSize        As Long              'size of a sheet
  379.    rOffset1          As Long              'returned offset 1
  380.    rOffset2          As Long              'returned offset 2
  381.    rTime             As Long              'time for the last correct transaction
  382.    nIsTyped          As Integer           'is nType a type'd variable
  383.    Dummy             As String * 7        'reserved for future use
  384. End Type
  385.  
  386. '  definition for variable type in DISK ARRAY
  387. Public Const DA_TYPE = 0
  388. Public Const DA_BYTE = -1
  389. Public Const DA_INTEGER = -2
  390. Public Const DA_LONG = -3
  391. Public Const DA_SINGLE = -4
  392. Public Const DA_DOUBLE = -5
  393. Public Const DA_CURRENCY = -6
  394.  
  395. '  definition for error type in DISK ARRAY
  396. Public Const DA_NO_ERROR = True
  397. Public Const DA_EMPTY_FILENAME = 1
  398. Public Const DA_BAD_FILENAME = 2
  399. Public Const DA_CAN_KILL_FILE = 3
  400. Public Const DA_CAN_NOT_OPEN_FILE = 4
  401. Public Const DA_FILE_NOT_FOUND = 5
  402. Public Const DA_BAD_TYPE = 6
  403. Public Const DA_BAD_ROWS = 7
  404. Public Const DA_BAD_COLS = 8
  405. Public Const DA_BAD_SHEETS = 9
  406. Public Const DA_CAN_NOT_WRITE_HEADER = 10
  407. Public Const DA_CAN_NOT_WRITE_PART = 11
  408. Public Const DA_CAN_NOT_WRITE_REMAIN = 12
  409. Public Const DA_CAN_NOT_READ_HEADER = 13
  410. Public Const DA_HEADER_SIZE = 14
  411. Public Const DA_BAD_SIGNATURE = 15
  412. Public Const DA_FILE_SIZE_MISMATCH = 16
  413. Public Const DA_CAN_NOT_SEEK = 17
  414. Public Const DA_INVALID_HANDLE = 18
  415. Public Const DA_CAN_NOT_READ_PART = 19
  416. Public Const DA_CAN_NOT_READ_REMAIN = 20
  417.  
  418. Declare Function cDAClear Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY) As Integer
  419. Declare Function cDAClearCol Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Col As Long, ByVal sheet As Long) As Integer
  420. Declare Function cDAClearRow Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal sheet As Long) As Integer
  421. Declare Function cDAClearSheet Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal sheet As Long) As Integer
  422. Declare Sub cDAClose Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal DeleteFile As Integer)
  423. Declare Function cDACreate Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal CreateOrUse As Integer) As Integer
  424. Declare Function cDAGet Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long) As Variant
  425. Declare Sub cDAGetType Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, nType As Any)
  426. Declare Sub cDAPut Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, Var As Variant)
  427. Declare Sub cDAPutType Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, nType As Any)
  428. Declare Sub cDArGet Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Col As Long, Var As Variant)
  429. Declare Sub cDArGetType Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Col As Long, nType As Any)
  430. Declare Sub cDArPut Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Col As Long, Var As Variant)
  431. Declare Sub cDArPutType Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Col As Long, nType As Any)
  432. Declare Function cDAsClearCol Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Col As Long) As Integer
  433. Declare Function cDAsClearRow Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long) As Integer
  434. Declare Sub cDAsGet Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal Col As Long, Var As Variant)
  435. Declare Sub cDAsGetType Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal Col As Long, nType As Any)
  436. Declare Sub cDAsPut Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal Col As Long, Var As Variant)
  437. Declare Sub cDAsPutType Lib "t2win-32.dll" (DISKARRAY As tagDISKARRAY, ByVal Row As Long, ByVal Col As Long, nType As Any)
  438.  
  439. ' huge memory array
  440.  
  441. '  structure for huge memory array
  442. Type tagHMA
  443.    daSize            As Integer           'size of the type'd
  444.    nType             As Integer           'variable type
  445.    nRows             As Long              'number of rows
  446.    nCols             As Long              'number of cols
  447.    nSheets           As Long              'number of sheets
  448.    rHandle           As Long              'returned handle for use with other functions
  449.    rElementSize      As Long              'returned size of a element
  450.    rMemorySize       As Long              'returned size of the memory used
  451.    rParts            As Long              'returned total part
  452.    rRemain           As Long              'returned size of the remain part
  453.    rSheetSize        As Long              'size of a sheet
  454.    rOffset           As Long              'returned offset
  455.    nIsTyped          As Integer           'is nType a type'd variable
  456.    Dummy             As String * 20       'reserved for future use
  457. End Type
  458.  
  459. '  definition for variable type in HUGE MEMORY ARRAY
  460. Public Const HMA_TYPE = 0
  461. Public Const HMA_BYTE = -1
  462. Public Const HMA_INTEGER = -2
  463. Public Const HMA_LONG = -3
  464. Public Const HMA_SINGLE = -4
  465. Public Const HMA_DOUBLE = -5
  466. Public Const HMA_CURRENCY = -6
  467.  
  468. '  definition for error type in HUGE MEMORY ARRAY
  469. Public Const HMA_NO_ERROR = True
  470. Public Const HMA_NO_MEMORY = 1
  471. Public Const HMA_BAD_TYPE = 2
  472. Public Const HMA_BAD_ROWS = 3
  473. Public Const HMA_BAD_COLS = 4
  474. Public Const HMA_BAD_SHEETS = 5
  475. Public Const HMA_INVALID_HANDLE = 6
  476.  
  477. Declare Function cHMAClear Lib "t2win-32.dll" (HMA As tagHMA) As Integer
  478. Declare Function cHMAClearCol Lib "t2win-32.dll" (HMA As tagHMA, ByVal Col As Long, ByVal sheet As Long) As Integer
  479. Declare Function cHMAClearRow Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal sheet As Long) As Integer
  480. Declare Function cHMAClearSheet Lib "t2win-32.dll" (HMA As tagHMA, ByVal sheet As Long) As Integer
  481. Declare Function cHMACreate Lib "t2win-32.dll" (HMA As tagHMA) As Integer
  482. Declare Function cHMAFree Lib "t2win-32.dll" (HMA As tagHMA) As Integer
  483. Declare Function cHMAGet Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long) As Variant
  484. Declare Sub cHMAGetType Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, nType As Any)
  485. Declare Sub cHMAPut Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, Var As Variant)
  486. Declare Sub cHMAPutType Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, nType As Any)
  487. Declare Sub cHMArGet Lib "t2win-32.dll" (HMA As tagHMA, ByVal Col As Long, Var As Variant)
  488. Declare Sub cHMArGetType Lib "t2win-32.dll" (HMA As tagHMA, ByVal Col As Long, nType As Any)
  489. Declare Sub cHMArPut Lib "t2win-32.dll" (HMA As tagHMA, ByVal Col As Long, Var As Variant)
  490. Declare Sub cHMArPutType Lib "t2win-32.dll" (HMA As tagHMA, ByVal Col As Long, nType As Any)
  491. Declare Sub cHMAsGet Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal Col As Long, Var As Variant)
  492. Declare Sub cHMAsGetType Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal Col As Long, nType As Any)
  493. Declare Sub cHMAsPut Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal Col As Long, Var As Variant)
  494. Declare Sub cHMAsPutType Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long, ByVal Col As Long, nType As Any)
  495. Declare Function cHMAsClearCol Lib "t2win-32.dll" (HMA As tagHMA, ByVal Col As Long) As Integer
  496. Declare Function cHMAsClearRow Lib "t2win-32.dll" (HMA As tagHMA, ByVal Row As Long) As Integer
  497. Declare Function cHMAOnDisk Lib "t2win-32.dll" (HMA As tagHMA, ByVal hsFile As String, ByVal hsGetPut As Integer) As Long
  498.  
  499. '  structure for multiple disk array
  500. Type tagMULTIPLEDISKARRAY
  501.    daSize               As Integer        'size of the structure
  502.    signature            As String * 7     'signature
  503.    nFilename            As String * 128   'name of the file
  504.    nType(1 To 20)       As Integer        'standard variable type (for 20 arrays)
  505.    nIsTyped(1 To 20)    As Integer        'is a type'd (for 20 arrays)
  506.    nRows(1 To 20)       As Long           'number of rows (for 20 arrays)
  507.    nCols(1 To 20)       As Long           'number of cols (for 20 arrays)
  508.    nSheets(1 To 20)     As Long           'number of sheets (for 20 arrays)
  509.    rHandle              As Long           'returned handle for use with other functions
  510.    rFileSize            As Long           'returned size of the file
  511.    rElementSz(1 To 20)  As Long           'returned size of a element (for 20 arrays)
  512.    rSheetSz(1 To 20)    As Long           'size of a sheet (for 20 arrays)
  513.    rOffsetPos(1 To 20)  As Long           'position of each array in the sFile (for 20 arrays)
  514.    rOffset1             As Long           'returned offset 1
  515.    rOffset2             As Long           'returned offset 2
  516.    rTime                As Long           'time for the last correct transaction
  517.    Dummy                As String * 28    'reserved for future use
  518. End Type
  519.  
  520. '  definition for variable type in HUGE MEMORY ARRAY
  521. Public Const MDA_TYPE = 0
  522. Public Const MDA_BYTE = -1
  523. Public Const MDA_INTEGER = -2
  524. Public Const MDA_LONG = -3
  525. Public Const MDA_SINGLE = -4
  526. Public Const MDA_DOUBLE = -5
  527. Public Const MDA_CURRENCY = -6
  528.  
  529. '  definition for error type in MULTIPLE DISK ARRAY
  530. Public Const MDA_NO_ERROR = -1
  531. Public Const MDA_EMPTY_FileName = 1
  532. Public Const MDA_BAD_FileName = 2
  533. Public Const MDA_CAN_KILL_FILE = 3
  534. Public Const MDA_CAN_NOT_OPEN_FILE = 4
  535. Public Const MDA_FILE_NOT_FOUND = 5
  536. Public Const MDA_BAD_TYPE = 6
  537. Public Const MDA_BAD_ROWS = 7
  538. Public Const MDA_BAD_COLS = 8
  539. Public Const MDA_BAD_SHEETS = 9
  540. Public Const MDA_CAN_NOT_WRITE_HEADER = 10
  541. Public Const MDA_CAN_NOT_WRITE_PART = 11
  542. Public Const MDA_CAN_NOT_WRITE_REMAIN = 12
  543. Public Const MDA_CAN_NOT_READ_HEADER = 13
  544. Public Const MDA_HEADER_SIZE = 14
  545. Public Const MDA_BAD_SIGNATURE = 15
  546. Public Const MDA_FILE_SIZE_MISMATCH = 16
  547. Public Const MDA_CAN_NOT_SEEK = 17
  548. Public Const MDA_INVALID_HANDLE = 18
  549. Public Const MDA_CAN_NOT_READ_PART = 19
  550. Public Const MDA_CAN_NOT_READ_REMAIN = 20
  551. Public Const MDA_BAD_MULTIPLE_ARRAY = 21
  552.  
  553. Declare Function cMDAClear Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY) As Integer
  554. Declare Function cMDAClearCol Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Col As Long, ByVal sheet As Long) As Integer
  555. Declare Function cMDAClearRow Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal sheet As Long) As Integer
  556. Declare Function cMDAClearSheet Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal sheet As Long) As Integer
  557. Declare Sub cMDAClose Lib "t2win-32.dll" (MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal DeleteFile As Integer)
  558. Declare Function cMDACreate Lib "t2win-32.dll" (MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal CreateOrUse As Integer) As Integer
  559. Declare Function cMDAGet Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long) As Variant
  560. Declare Sub cMDAGetType Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, nType As Any)
  561. Declare Sub cMDAPut Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, Var As Variant)
  562. Declare Sub cMDAPutType Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal Col As Long, ByVal sheet As Long, nType As Any)
  563. Declare Sub cMDArGet Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Col As Long, Var As Variant)
  564. Declare Sub cMDArGetType Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Col As Long, nType As Any)
  565. Declare Sub cMDArPut Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Col As Long, Var As Variant)
  566. Declare Sub cMDArPutType Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Col As Long, nType As Any)
  567. Declare Function cMDAsClearCol Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Col As Long) As Integer
  568. Declare Function cMDAsClearRow Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long) As Integer
  569. Declare Sub cMDAsGet Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal Col As Long, Var As Variant)
  570. Declare Sub cMDAsGetType Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal Col As Long, nType As Any)
  571. Declare Sub cMDAsPut Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal Col As Long, Var As Variant)
  572. Declare Sub cMDAsPutType Lib "t2win-32.dll" (ByVal array As Integer, MULTIPLEDISKARRAY As tagMULTIPLEDISKARRAY, ByVal Row As Long, ByVal Col As Long, nType As Any)
  573.  
  574. ' serialization
  575.  
  576. '  structure for serialization
  577. Type tagSERIALDATA
  578.    Description1      As String * 52       'serialization description 1
  579.    Description2      As String * 52       'serialization description 2
  580.    Number            As Long              'serialization number
  581.    Dummy             As String * 52       'reserved for future use
  582. End Type
  583.  
  584. '  definition for error type in SERIAL DATA
  585. Public Const SD_SERIAL_NOT_FOUND = 1
  586. Public Const SD_CAN_NOT_OPEN_FILE = 2
  587.  
  588. Declare Function cIsSerial Lib "t2win-32.dll" (ByVal sFile As String) As Integer
  589. Declare Function cSerialGet Lib "t2win-32.dll" (ByVal sFile As String, SERIALDATA As tagSERIALDATA) As Integer
  590. Declare Function cSerialInc Lib "t2win-32.dll" (ByVal sFile As String, ByVal Increment As Long) As Integer
  591. Declare Function cSerialPut Lib "t2win-32.dll" (ByVal sFile As String, SERIALDATA As tagSERIALDATA) As Integer
  592. Declare Function cSerialRmv Lib "t2win-32.dll" (ByVal sFile As String) As Integer
  593.  
  594. ' language control
  595.  
  596. '  definition for properties for language management
  597. Public Const RS_CAPTION = 1
  598. Public Const RS_TEXT = 2
  599. Public Const RS_DATAFIELD = 4
  600. Public Const RS_DATASOURCE = 8
  601. Public Const RS_TAG = 16
  602. Public Const RS_MENU = 32
  603. Public Const RS_ALL = 255
  604.  
  605. Declare Function cReadCtlLanguage Lib "t2win-32.dll" (ByVal Frm As Form, ByVal Property As Integer, ByVal FileLanguage As String) As Integer
  606. Declare Function cReadCtlLanguageExt Lib "t2win-32.dll" (ByVal Frm As Form, ByVal Property As Integer, ByVal FileLanguage As String) As Integer
  607. Declare Function cSaveCtlLanguage Lib "t2win-32.dll" (ByVal Frm As Form, ByVal Property As Integer, ByVal FileLanguage As String) As Integer
  608. Declare Function cSaveCtlLanguageExt Lib "t2win-32.dll" (ByVal Frm As Form, ByVal Property As Integer, ByVal FileLanguage As String) As Integer
  609.  
  610. ' interest rate
  611. Declare Function cAtoF Lib "t2win-32.dll" (ByVal Interest As Double, ByVal N As Integer) As Double
  612. Declare Function cAtoFC Lib "t2win-32.dll" (ByVal Rates As Double, ByVal N As Integer) As Double
  613. Declare Function cAtoP Lib "t2win-32.dll" (ByVal Interest As Double, ByVal N As Integer) As Double
  614. Declare Function cAtoPC Lib "t2win-32.dll" (ByVal Rates As Double, ByVal N As Integer) As Double
  615. Declare Function cFtoA Lib "t2win-32.dll" (ByVal Interest As Double, ByVal N As Integer) As Double
  616. Declare Function cFtoAC Lib "t2win-32.dll" (ByVal Rates As Double, ByVal N As Integer) As Double
  617. Declare Function cFtoP Lib "t2win-32.dll" (ByVal Interest As Double, ByVal N As Integer) As Double
  618. Declare Function cFtoPC Lib "t2win-32.dll" (ByVal Rates As Double, ByVal N As Integer) As Double
  619. Declare Function cPtoA Lib "t2win-32.dll" (ByVal Interest As Double, ByVal N As Integer) As Double
  620. Declare Function cPtoAC Lib "t2win-32.dll" (ByVal Rates As Double, ByVal N As Integer) As Double
  621. Declare Function cPtoF Lib "t2win-32.dll" (ByVal Interest As Double, ByVal N As Integer) As Double
  622. Declare Function cPtoFC Lib "t2win-32.dll" (ByVal Rates As Double, ByVal N As Integer) As Double
  623.  
  624. ' matrix
  625.  
  626. '  definition for matrix fill
  627. Public Const MATRIX_ZERO = 0
  628. Public Const MATRIX_UNIT = 1
  629.  
  630. Declare Sub cMatrixAdd Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ArrayB() As Double, ArrayC() As Double)
  631. Declare Function cMatrixCoFactor Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ByVal Row As Integer, ByVal Col As Integer) As Double
  632. Declare Function cMatrixCompare Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ArrayC() As Double) As Integer
  633. Declare Sub cMatrixCopy Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ArrayC() As Double)
  634. Declare Function cMatrixDet Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double) As Double
  635. Declare Function cMatrixFill Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ByVal nInit As Integer) As Integer
  636. Declare Function cMatrixInv Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ArrayC() As Double) As Integer
  637. Declare Function cMatrixMinor Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ByVal Row As Integer, ByVal Col As Integer) As Double
  638. Declare Sub cMatrixMul Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ArrayB() As Double, ArrayC() As Double)
  639. Declare Sub cMatrixSub Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ArrayB() As Double, ArrayC() As Double)
  640. Declare Function cMatrixSymToeplitz Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ArrayC() As Double) As Integer
  641. Declare Sub cMatrixTranspose Lib "t2win-32.dll" (ByVal Size As Integer, ArrayA() As Double, ArrayC() As Double)
  642.  
  643. ' is
  644.  
  645. Declare Function cIsAlnum Lib "t2win-32.dll" (Txt As String) As Integer
  646. Declare Function cIsAlpha Lib "t2win-32.dll" (Txt As String) As Integer
  647. Declare Function cIsAscii Lib "t2win-32.dll" (Txt As String) As Integer
  648. Declare Function cIsBalance Lib "t2win-32.dll" (ByVal nHour As Long, ByVal nMinute As Integer, ByVal nSecond As Integer) As Integer
  649. Declare Function cIsCsym Lib "t2win-32.dll" (Txt As String) As Integer
  650. Declare Function cIsCsymf Lib "t2win-32.dll" (Txt As String) As Integer
  651. Declare Function cIsDate Lib "t2win-32.dll" (ByVal nYear As Integer, ByVal nMonth As Integer, ByVal nDay As Integer) As Integer
  652. Declare Function cIsDigit Lib "t2win-32.dll" (Txt As String) As Integer
  653. Declare Function cIsFileArchive Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  654. Declare Function cIsFileEmpty Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  655. Declare Function cIsFileFlag Lib "t2win-32.dll" (ByVal nFilename As String, ByVal nStatus As Integer) As Integer
  656. Declare Function cIsFileHidden Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  657. Declare Function cIsFileNormal Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  658. Declare Function cIsFileReadOnly Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  659. Declare Function cIsFileSubDir Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  660. Declare Function cIsFileSystem Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  661. Declare Function cIsFileCompressed Lib "t2win-32.dll" (ByVal nFilename As String) As Integer
  662. Declare Function cIsFormEnabled Lib "t2win-32.dll" (ByVal hWnd As Long) As Integer
  663. Declare Function cIsHour Lib "t2win-32.dll" (ByVal nHour As Integer, ByVal nMinute As Integer, ByVal nSecond As Integer) As Integer
  664. Declare Function cIsISBN Lib "t2win-32.dll" (Txt As String) As Integer
  665. Declare Function cIsLeapYear Lib "t2win-32.dll" (ByVal nYear As Integer) As Integer
  666. Declare Function cIsLower Lib "t2win-32.dll" (Txt As String) As Integer
  667. Declare Function cIsPalindrome Lib "t2win-32.dll" (Txt As String) As Integer
  668. Declare Function cIsPunct Lib "t2win-32.dll" (Txt As String) As Integer
  669. Declare Function cIsSpace Lib "t2win-32.dll" (Txt As String) As Integer
  670. Declare Function cIsUpper Lib "t2win-32.dll" (Txt As String) As Integer
  671. Declare Function cIsXdigit Lib "t2win-32.dll" (Txt As String) As Integer
  672.  
  673. ' encrypt/decrypt
  674.  
  675. '  definition for encrypt/decrypt
  676. Public Const ENCRYPT_LEVEL_0 = 0
  677. Public Const ENCRYPT_LEVEL_1 = 1
  678. Public Const ENCRYPT_LEVEL_2 = 2
  679. Public Const ENCRYPT_LEVEL_3 = 3
  680. Public Const ENCRYPT_LEVEL_4 = 4
  681.  
  682. Declare Function cDecrypt Lib "t2win-32.dll" (Txt As String, Password As String, ByVal level As Integer) As String
  683. Declare Function cEncrypt Lib "t2win-32.dll" (Txt As String, Password As String, ByVal level As Integer) As String
  684. Declare Function cFileDecrypt Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, Password As String, ByVal level As Integer) As Long
  685. Declare Function cFileEncrypt Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, Password As String, ByVal level As Integer) As Long
  686.  
  687. ' hicrypt
  688.  
  689. Declare Function cCrypt Lib "t2win-32.dll" (Txt As String, ByVal Password As String) As String
  690. Declare Function cFileCrypt Lib "t2win-32.dll" (ByVal file1 As String, ByVal file2 As String, ByVal Password As String) As Long
  691.  
  692. ' crc32
  693.  
  694. '  definition for crc32
  695. Public Const OPEN_MODE_BINARY = 0
  696. Public Const OPEN_MODE_TEXT = 1
  697.  
  698. Declare Function cFileCRC32 Lib "t2win-32.dll" (ByVal lpFilename As String, ByVal Mode As Integer) As Long
  699. Declare Function cStringCRC32 Lib "t2win-32.dll" (Txt As String) As Long
  700.  
  701. ' string
  702.  
  703. '  definition for error type for PATTERNMATCHEXT
  704. Public Const MATCH_HEXA = 17
  705. Public Const MATCH_INTERNAL_ERROR = 16
  706. Public Const MATCH_PATTERN = 15
  707. Public Const MATCH_LITERAL = 14
  708. Public Const MATCH_RANGE = 13
  709. Public Const MATCH_ABORT = 12
  710. Public Const MATCH_END = 11
  711. Public Const MATCH_VALID = -1
  712.  
  713. Public Const PATTERN_VALID = 0
  714. Public Const PATTERN_INVALID = 1
  715. Public Const PATTERN_ESC = 2
  716. Public Const PATTERN_RANGE = 3
  717. Public Const PATTERN_CLOSE = 4
  718. Public Const PATTERN_EMPTY = 5
  719. Public Const PATTERN_INTERNAL_ERROR = 6
  720. Public Const PATTERN_HEXA = 7
  721.  
  722. ' definition for PROPERNAME2
  723. Public Const PN_UPPERCASE = 1
  724. Public Const PN_PUNCTUATION = 2
  725. Public Const PN_KEEP_ORIGINAL = 4
  726. Public Const PN_ONLY_LEADER_SPACE = 8
  727.  
  728. Declare Function cAddDigit Lib "t2win-32.dll" (Txt As String) As Integer
  729. Declare Function cAlign Lib "t2win-32.dll" (Txt As String, ByVal TypeAlign As Integer, ByVal NewLength As Long) As String
  730. Declare Function cAndToken Lib "t2win-32.dll" (ByVal Txt As String, ByVal Token As String) As Integer
  731. Declare Function cAndTokenIn Lib "t2win-32.dll" (ByVal Txt As String, ByVal Token As String, ByVal Separator As String) As Integer
  732. Declare Function cArabicToRoman Lib "t2win-32.dll" (Var As Variant) As String
  733. Declare Function cBlockCharFromLeft Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As String
  734. Declare Function cBlockCharFromRight Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As String
  735. Declare Sub cChangeChars Lib "t2win-32.dll" (Txt As String, CharSet As String, NewCharSet As String)
  736. Declare Sub cChangeCharsUntil Lib "t2win-32.dll" (Txt As String, CharSet As String, NewCharSet As String, nUntil As String)
  737. Declare Function cCheckChars Lib "t2win-32.dll" (Txt As String, CharSet As String) As Integer
  738. Declare Function cCheckNumericity Lib "t2win-32.dll" (Txt As String) As Integer
  739. Declare Sub cCnvASCIItoEBCDIC Lib "t2win-32.dll" (Txt As String)
  740. Declare Sub cCnvEBCDICtoASCII Lib "t2win-32.dll" (Txt As String)
  741. Declare Function cCompact Lib "t2win-32.dll" (Txt As String) As String
  742. Declare Function cCompress Lib "t2win-32.dll" (Txt As String) As String
  743. Declare Function cCompressTab Lib "t2win-32.dll" (Txt As String, ByVal nTab As Long) As String
  744. Declare Function cCount Lib "t2win-32.dll" (Txt As String, Separator As String) As Integer
  745. Declare Function cCplAlpha Lib "t2win-32.dll" (Txt As String) As String
  746. Declare Function cCplDigit Lib "t2win-32.dll" (Txt As String) As String
  747. Declare Function cCreateAndFill Lib "t2win-32.dll" (ByVal Length As Long, Txt As String) As String
  748. Declare Function cExpandTab Lib "t2win-32.dll" (Txt As String, ByVal nTab As Long) As String
  749. Declare Sub cFill Lib "t2win-32.dll" (Txt As String, Fill As String)
  750. Declare Function cFilterBlocks Lib "t2win-32.dll" (Txt As String, Delimitor As String) As String
  751. Declare Function cFilterChars Lib "t2win-32.dll" (Txt As String, CharSet As String) As String
  752. Declare Function cFilterFirstChars Lib "t2win-32.dll" (Txt As String, CharSet As String) As String
  753. Declare Function cFilterNotChars Lib "t2win-32.dll" (Txt As String, CharSet As String) As String
  754. Declare Function cFromHexa Lib "t2win-32.dll" (Text As String) As String
  755. Declare Function cGet Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As String
  756. Declare Function cGetBlock Lib "t2win-32.dll" (Txt As String, ByVal Position As Long, ByVal Length As Long) As String
  757. Declare Function cGetIn Lib "t2win-32.dll" (Txt As String, Separator As String, ByVal Position As Long) As String
  758. Declare Function cGetInPart Lib "t2win-32.dll" (Txt As String, Separator As String, ByVal Position As Long) As String
  759. Declare Function cGetInPartR Lib "t2win-32.dll" (Txt As String, Separator As String, ByVal Position As Long) As String
  760. Declare Function cGetInR Lib "t2win-32.dll" (Txt As String, Separator As String, ByVal Position As Long) As String
  761. Declare Function cH2I Lib "t2win-32.dll" (ByVal Txt As String) As Integer
  762. Declare Function cH2L Lib "t2win-32.dll" (ByVal Txt As String) As Long
  763. Declare Function cInsertBlocks Lib "t2win-32.dll" (Txt As String, Insert As String) As String
  764. Declare Function cInsertBlocksBy Lib "t2win-32.dll" (Txt As String, Insert As String, Delimitor As String) As String
  765. Declare Function cInsertByMask Lib "t2win-32.dll" (Txt As String, Mask As String, Insert As String) As String
  766. Declare Function cInsertChars Lib "t2win-32.dll" (Txt As String, ByVal Position As Long, Insert As String) As String
  767. Declare Function cLrc Lib "t2win-32.dll" (Txt As String) As String
  768. Declare Function cMixChars Lib "t2win-32.dll" (Txt As String) As String
  769. Declare Function cMorse Lib "t2win-32.dll" (ByVal morse As String) As String
  770. Declare Function cNumDigit Lib "t2win-32.dll" (Txt As String) As Integer
  771. Declare Function cOneCharFromLeft Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As String
  772. Declare Function cOneCharFromRight Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As String
  773. Declare Function cOrToken Lib "t2win-32.dll" (ByVal Txt As String, ByVal Token As String) As Integer
  774. Declare Function cOrTokenIn Lib "t2win-32.dll" (ByVal Txt As String, ByVal Token As String, ByVal Separator As String) As Integer
  775. Declare Function cPatternMatch Lib "t2win-32.dll" (ByVal Txt As String, ByVal pattern As String) As Integer
  776. Declare Function cPatternExtMatch Lib "t2win-32.dll" (ByVal Txt As String, ByVal pattern As String) As Integer
  777. Declare Function cProperName Lib "t2win-32.dll" (Txt As String) As String
  778. Declare Function cProperName2 Lib "t2win-32.dll" (Txt As String, ByVal TokenToUse As String, ByVal Options As Integer) As String
  779. Declare Function cRemoveBlockChar Lib "t2win-32.dll" (Txt As String, ByVal Position As Long, ByVal Length As Long) As String
  780. Declare Function cRemoveOneChar Lib "t2win-32.dll" (Txt As String, ByVal Position As Long) As String
  781. Declare Function cResizeString Lib "t2win-32.dll" (Txt As String, ByVal NewLength As Long) As String
  782. Declare Function cResizeStringAndFill Lib "t2win-32.dll" (Txt As String, ByVal NewLength As Long, Fill As String) As String
  783. Declare Function cReverse Lib "t2win-32.dll" (Txt As String) As String
  784. Declare Function cReverseSortStr Lib "t2win-32.dll" (Txt As String, ByVal nItem As Integer, ByVal ItemLength As Integer) As Integer
  785. Declare Function cRomanToArabic Lib "t2win-32.dll" (Txt As String) As Variant
  786. Declare Function cScrollL Lib "t2win-32.dll" (Txt As String) As String
  787. Declare Function cScrollR Lib "t2win-32.dll" (Txt As String) As String
  788. Declare Sub cSetDefaultSeparator Lib "t2win-32.dll" (Separator As String)
  789. Declare Function cSortStr Lib "t2win-32.dll" (Txt As String, ByVal nItem As Integer, ByVal ItemLength As Integer) As Integer
  790. Declare Function cStringSAR Lib "t2win-32.dll" (ByVal Txt As String, ByVal Search As String, ByVal Replace As String, ByVal Sensitivity As Integer) As String
  791. Declare Function cToHexa Lib "t2win-32.dll" (Text As String) As String
  792. Declare Function cTokenIn Lib "t2win-32.dll" (Txt As String, Separator As String, ByVal Position As Integer) As String
  793. Declare Function cUncompact Lib "t2win-32.dll" (Txt As String) As String
  794.  
  795. ' random
  796.  
  797. Declare Sub cRndInit Lib "t2win-32.dll" (ByVal nRnd As Long)
  798. Declare Function cRnd Lib "t2win-32.dll" () As Double
  799. Declare Function cRndD Lib "t2win-32.dll" () As Double
  800. Declare Function cRndI Lib "t2win-32.dll" () As Integer
  801. Declare Function cRndL Lib "t2win-32.dll" () As Long
  802. Declare Function cRndS Lib "t2win-32.dll" () As Single
  803.  
  804. ' swap
  805.  
  806. Declare Sub cSwapB Lib "t2win-32.dll" (swap1 As Byte, swap2 As Byte)
  807. Declare Sub cSwapD Lib "t2win-32.dll" (swap1 As Double, swap2 As Double)
  808. Declare Sub cSwapI Lib "t2win-32.dll" (swap1 As Integer, swap2 As Integer)
  809. Declare Sub cSwapL Lib "t2win-32.dll" (swap1 As Long, swap2 As Long)
  810. Declare Sub cSwapS Lib "t2win-32.dll" (swap1 As Single, swap2 As Single)
  811. Declare Sub cSwapStr Lib "t2win-32.dll" (swap1 As String, swap2 As String)
  812.  
  813. ' type
  814.  
  815. Declare Function cCompareTypeString Lib "t2win-32.dll" Alias "cTypesCompare" (TypeSrc As Any, ByVal Dst As String, ByVal lenTypeSrc As Integer) As Integer
  816. Declare Function cCompareStringType Lib "t2win-32.dll" Alias "cTypesCompare" (ByVal Src As String, TypeDst As Any, ByVal lenTypeSrc As Integer) As Integer
  817. Declare Sub cStringToType Lib "t2win-32.dll" Alias "cTypesCopy" (ByVal Src As String, TypeDst As Any, ByVal lenTypeSrc As Integer)
  818. Declare Sub cTypeClear Lib "t2win-32.dll" (TypeSrc As Any, ByVal lenTypeSrc As Integer)
  819. Declare Function cTypeMid Lib "t2win-32.dll" (TypeSrc As Any, ByVal offset As Integer, ByVal Length As Integer) As String
  820. Declare Function cTypesCompare Lib "t2win-32.dll" (Type1 As Any, Type2 As Any, ByVal lenType1 As Integer) As Integer
  821. Declare Sub cTypesCopy Lib "t2win-32.dll" (TypeSrc As Any, TypeDst As Any, ByVal lenTypeSrc As Integer)
  822. Declare Function cTypeTransfert Lib "t2win-32.dll" (TypeSrc As Any, ByVal lenTypeSrc As Integer) As String
  823. Declare Sub cTypeToString Lib "t2win-32.dll" Alias "cTypesCopy" (TypeSrc As Any, ByVal Dst As String, ByVal lenTypeSrc As Integer)
  824.  
  825. ' miscelleanous
  826.  
  827. Declare Function cMax Lib "t2win-32.dll" (Var1 As Variant, Var2 As Variant) As Variant
  828. Declare Function cMin Lib "t2win-32.dll" (Var1 As Variant, Var2 As Variant) As Variant
  829. Declare Sub cIncrI Lib "t2win-32.dll" (Value As Integer)
  830. Declare Sub cIncrL Lib "t2win-32.dll" (Value As Long)
  831. Declare Sub cDecrI Lib "t2win-32.dll" (Value As Integer)
  832. Declare Sub cDecrL Lib "t2win-32.dll" (Value As Long)
  833. Declare Function cSpellMoney Lib "t2win-32.dll" (ByVal Value As Double, ByVal Units As String, ByVal Cents As String) As String
  834. Declare Function cFraction Lib "t2win-32.dll" (ByVal nValue As Double, nNumerator As Double, nDenominator As Double) As Double
  835. Declare Function cCombination Lib "t2win-32.dll" (ByVal nItems As Integer, ByVal mTimes As Integer) As Double
  836. Declare Function cSgn Lib "t2win-32.dll" (ByVal Value As Integer) As Integer
  837. Declare Function cBetween Lib "t2win-32.dll" (Var As Variant, Var1 As Variant, Var2 As Variant) As Integer
  838. Declare Function cGetPid Lib "t2win-32.dll" () As Integer
  839. Declare Function cBaseConversion Lib "t2win-32.dll" (ByVal Num As String, ByVal RadixIn As Integer, ByVal RadixOut As Integer) As String
  840.  
  841. ' windows
  842.  
  843. '  definition for win.ini section
  844. Public Const GET_TIME_SEPARATOR = 1
  845. Public Const GET_DATE_SEPARATOR = 2
  846. Public Const GET_TIME_FORMAT = 3
  847. Public Const GET_DATE_FORMAT = 4
  848. Public Const GET_CURRENCY = 5
  849. Public Const GET_LANGUAGE = 6
  850. Public Const GET_COUNTRY = 7
  851. Public Const GET_COUNTRY_CODE = 8
  852. Public Const GET_LIST_SEPARATOR = 9
  853. Public Const GET_DEFAULT_PRINTER = 10
  854.  
  855. Declare Sub cArrangeDesktopIcons Lib "t2win-32.dll" ()
  856. Declare Sub cCenterWindow Lib "t2win-32.dll" (ByVal hWnd As Long)
  857. Declare Function cEXEnameActiveWindow Lib "t2win-32.dll" () As String
  858. Declare Function cEXEnameWindow Lib "t2win-32.dll" (ByVal hWnd As Long) As String
  859. Declare Function cEXEnameTask Lib "t2win-32.dll" (ByVal nFilename As String) As String
  860. Declare Function cExitWindowsAndExecute Lib "t2win-32.dll" (ByVal lpszExe As String, ByVal lpszParams As String) As Integer
  861. Declare Function cFindFileInEnv Lib "t2win-32.dll" (ByVal lpFilename As String, ByVal lpEnv As String) As Integer
  862. Declare Function cFindFileInPath Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  863. Declare Function cGetClassName Lib "t2win-32.dll" (ByVal hWnd As Long) As String
  864. Declare Function cGetCountry Lib "t2win-32.dll" () As String
  865. Declare Function cGetCountryCode Lib "t2win-32.dll" () As String
  866. Declare Function cGetCurrency Lib "t2win-32.dll" () As String
  867. Declare Function cGetCurrentDrive Lib "t2win-32.dll" () As String
  868. Declare Function cGetDateFormat Lib "t2win-32.dll" () As String
  869. Declare Function cGetDateSeparator Lib "t2win-32.dll" () As String
  870. Declare Function cGetDefaultCurrentDir Lib "t2win-32.dll" () As String
  871. Declare Function cGetDefaultPrinter Lib "t2win-32.dll" () As String
  872. Declare Function cGetDevices Lib "t2win-32.dll" () As String
  873. Declare Function cGetDriveCurrentDir Lib "t2win-32.dll" (ByVal lpDrive As String) As String
  874. Declare Function cGetFullNameInEnv Lib "t2win-32.dll" (ByVal lpFilename As String, ByVal lpEnv As String) As String
  875. Declare Function cGetFullNameInPath Lib "t2win-32.dll" (ByVal lpFilename As String) As String
  876. Declare Function cGetHourFormat Lib "t2win-32.dll" () As String
  877. Declare Function cGetIni Lib "t2win-32.dll" (ByVal AppName As String, ByVal szItem As String, ByVal szDefault As String, ByVal InitFile As String) As String
  878. Declare Function cGetLanguage Lib "t2win-32.dll" () As String
  879. Declare Function cGetListSeparator Lib "t2win-32.dll" () As String
  880. Declare Function cGetSystemDirectory Lib "t2win-32.dll" () As String
  881. Declare Function cGetTimeSeparator Lib "t2win-32.dll" () As String
  882. Declare Function cGetWindowsDirectory Lib "t2win-32.dll" () As String
  883. Declare Function cGetWinINI Lib "t2win-32.dll" (ByVal Info As Integer) As String
  884. Declare Function cGetWinSection Lib "t2win-32.dll" (ByVal Section As String) As String
  885. Declare Sub cPutIni Lib "t2win-32.dll" (ByVal AppName As String, ByVal szItem As String, ByVal szDefault As String, ByVal InitFile As String)
  886. Declare Function cRebootSystem Lib "t2win-32.dll" () As Integer
  887. Declare Function cRestartWindows Lib "t2win-32.dll" () As Integer
  888. Declare Function cSetHandleCount Lib "t2win-32.dll" (ByVal nHandle As Integer) As Integer
  889. Declare Sub cShowWindow Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal Method As Integer, ByVal interval As Integer)
  890. Declare Function cGetSectionItems Lib "t2win-32.dll" (ByVal Section As String, ByVal InitFile As String, nItems As Integer) As String
  891. Declare Function cTaskBarAddIcon Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal hIcon As Long, ByVal lpszTip As String) As Integer
  892. Declare Function cTaskBarDeleteIcon Lib "t2win-32.dll" (ByVal hWnd As Long) As Integer
  893. Declare Function cTaskBarModifyIcon Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal hIcon As Long, ByVal lpszTip As String) As Integer
  894.  
  895. ' list/combo box
  896.  
  897. Public Const DDL_READWRITE = &H0
  898. Public Const DDL_READONLY = &H1
  899. Public Const DDL_HIDDEN = &H2
  900. Public Const DDL_SYSTEM = &H4
  901. Public Const DDL_DIRECTORY = &H10
  902. Public Const DDL_ARCHIVE = &H20
  903. Public Const DDL_POSTMSGS = &H2000
  904. Public Const DDL_DRIVES = &H4000
  905. Public Const DDL_EXCLUSIVE = &H8000
  906.  
  907. Declare Function cArrayToComboBox Lib "t2win-32.dll" (ByVal hWnd As Long, array() As String) As Integer
  908. Declare Function cArrayToListBox Lib "t2win-32.dll" (ByVal hWnd As Long, array() As String) As Integer
  909. Declare Function cFileToComboBox Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal nFile As String) As Integer
  910. Declare Function cFileToListBox Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal nFile As String) As Integer
  911. Declare Function cListSetTabs Lib "t2win-32.dll" (ByVal hWnd As Long, TabArray() As Long) As Integer
  912. Declare Function cListFiles Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal Attributes As Long, ByVal FilePathMaask As String) As Integer
  913. Declare Function cComboFiles Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal Attributes As Long, ByVal FilePathMaask As String) As Integer
  914. Declare Function cListSearchFile Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal StartPath As String, ByVal FileMask As String) As Long
  915. Declare Function cComboSearchFile Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal StartPath As String, ByVal FileMask As String) As Long
  916.  
  917. ' mdtkfv
  918.  
  919. '  definition for sFile version information
  920. Public Const VER_VERSION_PRODUCT = -1
  921. Public Const VER_VERSION_FILE = 0
  922. Public Const VER_COMPANY_NAME = 1
  923. Public Const VER_FILE_DESCRIPTION = 2
  924. Public Const VER_FILE_VERSION = 3
  925. Public Const VER_INTERNAL_NAME = 4
  926. Public Const VER_LEGAL_COPYRIGHT = 5
  927. Public Const VER_LEGAL_TRADEMARKS = 6
  928. Public Const VER_PRODUCT_NAME = 7
  929. Public Const VER_PRODUCT_VERSION = 8
  930.  
  931. '  structure for sFile version information
  932. Type tagFILEVERSIONINFO
  933.    VersionProduct    As String
  934.    VersionFile       As String
  935.    CompanyName       As String
  936.    FileDescription   As String
  937.    FileVersion       As String
  938.    InternalName      As String
  939.    LegalCopyright    As String
  940.    LegalTrademarks   As String
  941.    Comments          As String
  942.    ProductName       As String
  943.    ProductVersion    As String
  944. End Type
  945.  
  946. ' structure for modules
  947. Type tagMODULEENTRY
  948.    dwSize               As Long
  949.    th32ModuleID         As Long
  950.    th32ProcessID        As Long
  951.    GlblcntUsage         As Long
  952.    ProccntUsage         As Long
  953.    modBaseAddr          As Byte
  954.    modBaseSize          As Long
  955.    hModule              As Long
  956.    szModule             As String * 256
  957.    szExePath            As String * 260
  958. End Type
  959.  
  960. Type tagPROCESSENTRY
  961.    dwSize               As Long
  962.    cntUsage             As Long
  963.    th32ProcessID        As Long
  964.    th32DefaultHeapID    As Long
  965.    th32ModuleID         As Long
  966.    cntThreads           As Long
  967.    th32ParentProcessID  As Long
  968.    pcPriClassBase       As Long
  969.    dwFlags              As Long
  970.    szExeFile            As String * 260
  971. End Type
  972.  
  973. Type tagTHREADENTRY
  974.    dwSize               As Long
  975.    cntUsage             As Long
  976.    th32ThreadID         As Long
  977.    th32OwnerProcessID   As Long
  978.    tpBasePri            As Long
  979.    tpDeltaPri           As Long
  980.    dwFlags              As Long
  981. End Type
  982.  
  983. Declare Sub cChangeTaskName Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal Text As String)
  984. Declare Function cGetFileVersion Lib "t2win-32.dll" (ByVal FileName As String, ByVal nFonction As Integer) As String
  985. Declare Function cGetFileVersionInfo Lib "t2win-32.dll" (ByVal FileName As String, FILEVERSIONINFO As Any) As Integer
  986. Declare Function cGetChangeTaskName Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal Text As String) As String
  987. Declare Function cGetTaskName Lib "t2win-32.dll" (ByVal hWnd As Long) As String
  988. Declare Function cModule Lib "t2win-32.dll" (MODULEENTRY As tagMODULEENTRY, ByVal FirstNext As Integer) As Integer
  989. Declare Function cProcess Lib "t2win-32.dll" (PROCESSENTRY As tagPROCESSENTRY, ByVal FirstNext As Integer) As Integer
  990. Declare Function cThread Lib "t2win-32.dll" (THREADENTRY As tagTHREADENTRY, ByVal FirstNext As Integer) As Integer
  991. Declare Function cWalkThruWindow Lib "t2win-32.dll" (Class As String, Caption As String, OwnerHwnd As Long, OwnerClass As String, OwnerCaption As String, ByVal FirstNext As Integer) As Long
  992.  
  993. ' date - time
  994.  
  995. Declare Function cIntoDate Lib "t2win-32.dll" (ByVal nDate As Long) As String
  996. Declare Function cIntoDateFill Lib "t2win-32.dll" (ByVal nDate As Long) As String
  997. Declare Function cIntoDateNull Lib "t2win-32.dll" (ByVal nDate As Long) As String
  998. Declare Function cIntoFixHour Lib "t2win-32.dll" (Var As Variant, ByVal Length As Integer, ByVal fillZero As Integer, ByVal CentiΦme As Integer) As String
  999. Declare Function cIntoHour Lib "t2win-32.dll" (Var As Variant) As String
  1000. Declare Function cIntoVarHour Lib "t2win-32.dll" (Var As Variant) As String
  1001. Declare Function cDayOfWeek Lib "t2win-32.dll" (ByVal nYear As Integer, ByVal nMonth As Integer, ByVal nDay As Integer, ByVal nISO As Integer) As Integer
  1002. Declare Function cDayOfYear Lib "t2win-32.dll" (ByVal nYear As Integer, ByVal nMonth As Integer, ByVal nDay As Integer) As Integer
  1003. Declare Function cDaysInMonth Lib "t2win-32.dll" (ByVal nYear As Integer, ByVal nMonth As Integer) As Integer
  1004. Declare Function cDateToScalar Lib "t2win-32.dll" (ByVal nYear As Integer, ByVal nMonth As Integer, ByVal nDay As Integer) As Long
  1005. Declare Sub cScalarToDate Lib "t2win-32.dll" (ByVal Scalar As Long, nYear As Integer, nMonth As Integer, nDay As Integer)
  1006. Declare Sub cScalarToTime Lib "t2win-32.dll" (ByVal Scalar As Long, nHour As Integer, nMin As Integer, nSec As Integer)
  1007. Declare Function cTimeBetween Lib "t2win-32.dll" (ByVal Hr1 As Integer, ByVal Hr2 As Integer) As Integer
  1008. Declare Function cTimeToScalar Lib "t2win-32.dll" (ByVal nHour As Integer, ByVal nMin As Integer, ByVal nSec As Integer) As Long
  1009. Declare Function cWeekOfYear Lib "t2win-32.dll" (ByVal nYear As Integer, ByVal nMonth As Integer, ByVal nDay As Integer, ByVal nISO As Integer) As Integer
  1010. Declare Function cCurrentTime Lib "t2win-32.dll" () As Integer
  1011. Declare Function cAddTime Lib "t2win-32.dll" (ByVal Hr As Integer) As Integer
  1012. Declare Function cAddTwoTimes Lib "t2win-32.dll" (ByVal Time1 As String, ByVal Time2 As String) As String
  1013. Declare Function cCheckTime Lib "t2win-32.dll" (ByVal Hr As Integer, ByVal Hr1 As Integer, ByVal Hr2 As Integer) As Integer
  1014. Declare Function cTrueBetween Lib "t2win-32.dll" (Var As Variant, Var1 As Variant, Var2 As Variant) As Integer
  1015. Declare Function cHourTo Lib "t2win-32.dll" (Txt As String) As Variant
  1016. Declare Function cIntoBalance Lib "t2win-32.dll" (Var As Variant) As String
  1017. Declare Function cIntoBalanceFill Lib "t2win-32.dll" (Var As Variant) As String
  1018.  
  1019. ' process id
  1020.  
  1021. Declare Sub cPushID Lib "t2win-32.dll" (IDArray() As Integer, ByVal nID As Integer)
  1022. Declare Sub cPopID Lib "t2win-32.dll" (IDArray() As Integer, ByVal nID As Integer)
  1023. Declare Sub cPopLastID Lib "t2win-32.dll" (IDArray() As Integer)
  1024. Declare Function cGetID Lib "t2win-32.dll" (IDArray() As Integer, ByVal nPosition As Integer) As Integer
  1025. Declare Sub cClearID Lib "t2win-32.dll" (IDArray() As Integer)
  1026.  
  1027. ' sFile I/O, direct routines issued from C functionnalities
  1028.  
  1029. Declare Function cFopen Lib "t2win-32.dll" (ByVal sFile As String, ByVal Mode As String) As Long
  1030. Declare Function cFclose Lib "t2win-32.dll" (ByVal IOstream As Long) As Integer
  1031. Declare Function cFgetc Lib "t2win-32.dll" (ByVal IOstream As Long) As Integer
  1032. Declare Function cFputc Lib "t2win-32.dll" (ByVal char As Integer, ByVal IOstream As Long) As Integer
  1033. Declare Function cFputs Lib "t2win-32.dll" (ByVal Txt As String, ByVal IOstream As Long) As Integer
  1034. Declare Function cFgets Lib "t2win-32.dll" (Txt As String, ByVal Length As Integer, ByVal IOstream As Long) As Integer
  1035. Declare Function cFwrite Lib "t2win-32.dll" (Txt As String, ByVal IOstream As Long) As Integer
  1036. Declare Function cFread Lib "t2win-32.dll" (Txt As String, ByVal Length As Integer, ByVal IOstream As Long) As Integer
  1037. Declare Function cFcloseall Lib "t2win-32.dll" () As Integer
  1038. Declare Function cFflush Lib "t2win-32.dll" (ByVal IOstream As Long) As Integer
  1039. Declare Function cFflushall Lib "t2win-32.dll" () As Integer
  1040. Declare Function cFeof Lib "t2win-32.dll" (ByVal IOstream As Long) As Integer
  1041. Declare Function cFerror Lib "t2win-32.dll" (ByVal IOstream As Long) As Integer
  1042. Declare Sub cFclearerr Lib "t2win-32.dll" (ByVal IOstream As Long)
  1043. Declare Function cFseek Lib "t2win-32.dll" (ByVal IOstream As Long, ByVal offset As Long, ByVal origin As Integer) As Integer
  1044. Declare Function cFtell Lib "t2win-32.dll" (ByVal IOstream As Long) As Long
  1045. Declare Sub cFrewind Lib "t2win-32.dll" (ByVal IOstream As Long)
  1046. Declare Function cFProcessAsciiFile Lib "t2win-32.dll" (ByVal IOstream As Long, AsciiOffset() As Long) As Long
  1047. Declare Function cFGotoRecord Lib "t2win-32.dll" (ByVal IOstream As Long, AsciiOffset() As Long, ByVal Record As Long) As Integer
  1048.  
  1049. ' day - month
  1050.  
  1051. '  definition for language in multi-language management
  1052. Public Const LNG_FRENCH = 1
  1053. Public Const LNG_DUTCH = 2
  1054. Public Const LNG_GERMAN = 3
  1055. Public Const LNG_ENGLISH = 4
  1056. Public Const LNG_ITALIAN = 5
  1057. Public Const LNG_SPANISH = 6
  1058. Public Const LNG_CATALAN = 7
  1059. Public Const LNG_POLISH = 8
  1060.  
  1061. Declare Function cGetAscTime Lib "t2win-32.dll" (ByVal nLanguage As Integer) As String
  1062. Declare Function cGetLongDay Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal nDay As Integer) As String
  1063. Declare Function cGetLongMonth Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal nMonth As Integer) As String
  1064. Declare Function cGetShortDay Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal nDay As Integer) As String
  1065. Declare Function cGetShortMonth Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal nMonth As Integer) As String
  1066. Declare Function cGetSmallDay Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal nDay As Integer) As String
  1067. Declare Function cGetTinyDay Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal nDay As Integer) As String
  1068. Declare Function cGetTinyMonth Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal nMonth As Integer) As String
  1069. Declare Sub cSysMenuChange Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal Position As Integer, ByVal NewMessage As String)
  1070.  
  1071. ' Functions for calculating 2-D geometry
  1072.  
  1073. '  structure for 2-D geometry types
  1074. Type tagVECTOR2
  1075.    x              As Double
  1076.    y              As Double
  1077. End Type
  1078.  
  1079. Declare Sub cV2Add Lib "t2win-32.dll" (u As tagVECTOR2, v As tagVECTOR2, w As tagVECTOR2)
  1080. Declare Sub cV2Sub Lib "t2win-32.dll" (u As tagVECTOR2, v As tagVECTOR2, w As tagVECTOR2)
  1081. Declare Sub cV2Combine Lib "t2win-32.dll" (u As tagVECTOR2, ByVal c1 As Double, v As tagVECTOR2, ByVal c2 As Double, w As tagVECTOR2)
  1082. Declare Sub cV2Copy Lib "t2win-32.dll" (u As tagVECTOR2, w As tagVECTOR2)
  1083. Declare Function cV2Dot Lib "t2win-32.dll" (u As tagVECTOR2, v As tagVECTOR2) As Double
  1084. Declare Function cV2Length Lib "t2win-32.dll" (u As tagVECTOR2) As Double
  1085. Declare Function cV2LengthSquared Lib "t2win-32.dll" (u As tagVECTOR2) As Double
  1086. Declare Sub cV2LinearIp Lib "t2win-32.dll" (lo As tagVECTOR2, hi As tagVECTOR2, ByVal alpha As Double, w As tagVECTOR2)
  1087. Declare Sub cV2Mul Lib "t2win-32.dll" (u As tagVECTOR2, v As tagVECTOR2, w As tagVECTOR2)
  1088. Declare Sub cV2Neg Lib "t2win-32.dll" (u As tagVECTOR2)
  1089. Declare Sub cV2Normalized Lib "t2win-32.dll" (u As tagVECTOR2)
  1090. Declare Sub cV2Ortho Lib "t2win-32.dll" (u As tagVECTOR2, w As tagVECTOR2)
  1091. Declare Sub cV2ScaledNewLength Lib "t2win-32.dll" (u As tagVECTOR2, ByVal newlen As Double)
  1092. Declare Function cV2SegmentLength Lib "t2win-32.dll" (p As tagVECTOR2, q As tagVECTOR2) As Double
  1093.  
  1094. ' Functions for calculating 3-D geometry
  1095.  
  1096. '  structure for 3-D geometry types
  1097. Type tagVECTOR3
  1098.    x              As Double
  1099.    y              As Double
  1100.    z              As Double
  1101. End Type
  1102.  
  1103. Declare Sub cV3Add Lib "t2win-32.dll" (u As tagVECTOR3, v As tagVECTOR3, w As tagVECTOR3)
  1104. Declare Sub cV3Sub Lib "t2win-32.dll" (u As tagVECTOR3, v As tagVECTOR3, w As tagVECTOR3)
  1105. Declare Sub cV3Combine Lib "t2win-32.dll" (u As tagVECTOR3, ByVal c1 As Double, v As tagVECTOR3, ByVal c2 As Double, w As tagVECTOR3)
  1106. Declare Sub cV3Copy Lib "t2win-32.dll" (u As tagVECTOR3, w As tagVECTOR3)
  1107. Declare Sub cV3Cross Lib "t2win-32.dll" (u As tagVECTOR3, v As tagVECTOR3, w As tagVECTOR3)
  1108. Declare Function cV3Dot Lib "t2win-32.dll" (u As tagVECTOR3, v As tagVECTOR3) As Double
  1109. Declare Function cV3Length Lib "t2win-32.dll" (u As tagVECTOR3) As Double
  1110. Declare Function cV3LengthSquared Lib "t2win-32.dll" (u As tagVECTOR3) As Double
  1111. Declare Sub cV3LinearIp Lib "t2win-32.dll" (lo As tagVECTOR3, hi As tagVECTOR3, ByVal alpha As Double, w As tagVECTOR3)
  1112. Declare Sub cV3Mul Lib "t2win-32.dll" (u As tagVECTOR3, v As tagVECTOR3, w As tagVECTOR3)
  1113. Declare Sub cV3Neg Lib "t2win-32.dll" (u As tagVECTOR3)
  1114. Declare Sub cV3Normalized Lib "t2win-32.dll" (u As tagVECTOR3)
  1115. Declare Sub cV3ScaledNewLength Lib "t2win-32.dll" (u As tagVECTOR3, ByVal newlen As Double)
  1116. Declare Function cV3SegmentLength Lib "t2win-32.dll" (p As tagVECTOR3, q As tagVECTOR3) As Double
  1117.  
  1118. Declare Function c3DWeightAverage Lib "t2win-32.dll" (ul3D As tagVECTOR3, ll3D As tagVECTOR3, lr3D As tagVECTOR3, ur3D As tagVECTOR3, ptToLocate3D As tagVECTOR3) As Double
  1119.  
  1120. ' huge string
  1121.  
  1122. Declare Function cHugeStrAdd Lib "t2win-32.dll" (ByVal hsHandle As Long, hsText As String) As Integer
  1123. Declare Function cHugeStrAddress Lib "t2win-32.dll" (ByVal hsHandle As Long) As Long
  1124. Declare Function cHugeStrAppend Lib "t2win-32.dll" (ByVal hsHandle As Long, hsText As String) As Integer
  1125. Declare Function cHugeStrBlocks Lib "t2win-32.dll" (ByVal hsHandle As Long) As Long
  1126. Declare Function cHugeStrClear Lib "t2win-32.dll" (ByVal hsHandle As Long) As Integer
  1127. Declare Function cHugeStrCreate Lib "t2win-32.dll" (ByVal hsSize As Long) As Long
  1128. Declare Function cHugeStrFree Lib "t2win-32.dll" (ByVal hsHandle As Long) As Integer
  1129. Declare Function cHugeStrGetNP Lib "t2win-32.dll" (ByVal hsHandle As Long) As Long
  1130. Declare Function cHugeStrGetWP Lib "t2win-32.dll" (ByVal hsHandle As Long) As Long
  1131. Declare Function cHugeStrLength Lib "t2win-32.dll" (ByVal hsHandle As Long) As Long
  1132. Declare Function cHugeStrMid Lib "t2win-32.dll" (ByVal hsHandle As Long, ByVal hsStart As Long, ByVal hsLength As Long) As String
  1133. Declare Function cHugeStrNext Lib "t2win-32.dll" (ByVal hsHandle As Long, ByVal hsNext As Long) As String
  1134. Declare Function cHugeStrOnDisk Lib "t2win-32.dll" (ByVal hsHandle As Long, ByVal hsFile As String, ByVal hsGetPut As Integer) As Long
  1135. Declare Function cHugeStrRead Lib "t2win-32.dll" (ByVal hsHandle As Long, ByVal hsBlock As Long) As String
  1136. Declare Function cHugeStrSetNP Lib "t2win-32.dll" (ByVal hsHandle As Long, ByVal hsPtr As Long) As Integer
  1137. Declare Function cHugeStrSetWP Lib "t2win-32.dll" (ByVal hsHandle As Long, ByVal hsPtr As Long) As Integer
  1138. Declare Function cHugeStrSize Lib "t2win-32.dll" (ByVal hsHandle As Long) As Long
  1139.  
  1140. ' t2win-32 version
  1141.  
  1142. Declare Function cGetVersion Lib "t2win-32.dll" () As Single
  1143.  
  1144. ' protect
  1145.  
  1146. Declare Function cHashMD5 Lib "t2win-32.dll" (Text As String) As String
  1147. Declare Function cRegistrationKey Lib "t2win-32.dll" (ByVal RegText As String, ByVal RegKey1 As Long) As Long
  1148. Declare Function cRegistrationKey2 Lib "t2win-32.dll" (ByVal RegText As String, ByVal RegKey1 As Long, ByVal RegKey2 As Long) As Long
  1149. Declare Function cRegistrationKey3 Lib "t2win-32.dll" (ByVal RegText As String, ByVal RegKey1 As Long, ByVal RegKey2 As Long, ByVal RegKey3 As Long) As Long
  1150.  
  1151. ' media ID - volume
  1152.  
  1153. '  structure for get/set Media ID
  1154. Type tagMEDIAID
  1155.    VolumeName           As String
  1156.    VolumeSerialNumber   As Long
  1157.    SystemName           As String
  1158.    MaxNameLength        As Long
  1159.    FileSystemFlags      As Long
  1160. End Type
  1161.  
  1162. ' structure for get/set DOS Media ID
  1163. Type tagDOSMEDIAID
  1164.    InfoLevel            As String * 2     'use cCVI for integer conversion
  1165.    SerialNumber         As String * 4     'use cCVL for long conversion
  1166.    VolLabel             As String * 11
  1167.    FileSysType          As String * 8
  1168. End Type
  1169.  
  1170. Declare Function cGetMediaID Lib "t2win-32.dll" (ByVal nDrive As String, MEDIAID As tagMEDIAID) As Integer
  1171. Declare Function cGetVolumeLabel Lib "t2win-32.dll" (ByVal nDrive As String) As String
  1172. Declare Function cSetVolumeLabel Lib "t2win-32.dll" (ByVal nDrive As String, ByVal nVolumeLabel As String) As Integer
  1173. Declare Function cDOSGetMediaID Lib "t2win-32.dll" (ByVal nDrive As String, DOSMEDIAID As tagDOSMEDIAID) As Integer
  1174. Declare Function cDOSSetMediaID Lib "t2win-32.dll" (ByVal nDrive As String, DOSMEDIAID As tagDOSMEDIAID) As Integer
  1175.  
  1176. ' network
  1177.  
  1178. Declare Function cGetNetConnection Lib "t2win-32.dll" (ByVal lpDrive As String, ErrCode As Integer) As String
  1179.  
  1180. ' multi-language message box - input box
  1181.  
  1182. '  definition for message position
  1183. Public Const MB_MESSAGE_LEFT = 0
  1184. Public Const MB_MESSAGE_CENTER = 8192
  1185. Public Const MB_MESSAGE_RIGHT = 16384
  1186.  
  1187. '  definition for timeout management
  1188. Public Const MB_TIMEOUT_2 = 32768
  1189. Public Const MB_TIMEOUT_4 = 2 * MB_TIMEOUT_2
  1190. Public Const MB_TIMEOUT_8 = 2 * MB_TIMEOUT_4
  1191. Public Const MB_TIMEOUT_16 = 2 * MB_TIMEOUT_8
  1192.  
  1193. Public Const MB_TIMEOUT_6 = MB_TIMEOUT_2 Or MB_TIMEOUT_4
  1194. Public Const MB_TIMEOUT_10 = MB_TIMEOUT_2 Or MB_TIMEOUT_8
  1195. Public Const MB_TIMEOUT_12 = MB_TIMEOUT_4 Or MB_TIMEOUT_8
  1196. Public Const MB_TIMEOUT_14 = MB_TIMEOUT_2 Or MB_TIMEOUT_4 Or MB_TIMEOUT_8
  1197. Public Const MB_TIMEOUT_18 = MB_TIMEOUT_2 Or MB_TIMEOUT_16
  1198. Public Const MB_TIMEOUT_20 = MB_TIMEOUT_4 Or MB_TIMEOUT_16
  1199. Public Const MB_TIMEOUT_22 = MB_TIMEOUT_2 Or MB_TIMEOUT_4 Or MB_TIMEOUT_16
  1200. Public Const MB_TIMEOUT_24 = MB_TIMEOUT_8 Or MB_TIMEOUT_16
  1201. Public Const MB_TIMEOUT_26 = MB_TIMEOUT_2 Or MB_TIMEOUT_8 Or MB_TIMEOUT_16
  1202. Public Const MB_TIMEOUT_28 = MB_TIMEOUT_4 Or MB_TIMEOUT_8 Or MB_TIMEOUT_16
  1203. Public Const MB_TIMEOUT_30 = MB_TIMEOUT_2 Or MB_TIMEOUT_4 Or MB_TIMEOUT_8 Or MB_TIMEOUT_16
  1204.  
  1205. Public Const MB_DISPLAY_TIMEOUT = 524288
  1206.  
  1207. Declare Function cLngMsgBox Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal Message As String, ByVal Button As Long, ByVal Title As String) As Integer
  1208. Declare Sub cLngBoxMsg Lib "t2win-32.dll" Alias "cLngMsgBox" (ByVal nLanguage As Integer, ByVal Message As String, ByVal Button As Long, ByVal Title As String)
  1209. Declare Function cLngInpBox Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal Message As String, ByVal Title As String, ByVal Default As String) As String
  1210. Declare Sub cLngSysMenu Lib "t2win-32.dll" (ByVal nLanguage As Integer, ByVal hWnd As Long)
  1211.  
  1212. ' desktop
  1213.  
  1214. Declare Sub cLoadDesktopBackground Lib "t2win-32.dll" (ByVal FileName As String, ByVal Tile As Integer)
  1215.  
  1216. ' registry
  1217.  
  1218. Public Const RK_NO_ERROR = -1
  1219. Public Const RK_KEY_IS_EMPTY = 1
  1220. Public Const RK_UNABLE_TO_CREATE_KEY = 2
  1221. Public Const RK_UNABLE_TO_OPEN_KEY = 3
  1222. Public Const RK_UNKNOWN_DISPOSITION = 4
  1223. Public Const RK_CANNOT_SET_THE_VALUE = 5
  1224. Public Const RK_UNABLE_TO_QUERY_KEY = 6
  1225.  
  1226. Declare Function cPutRegistry Lib "t2win-32.dll" (ByVal lpSection As String, ByVal lpKey As String, ByVal lpValue As String) As Integer
  1227. Declare Function cGetRegistry Lib "t2win-32.dll" (ByVal lpSection As String, ByVal lpKey As String, ByVal lpDefault As String) As String
  1228. Declare Function cKillRegistry Lib "t2win-32.dll" (ByVal lpSection As String, ByVal lpKey As String) As Integer
  1229.  
  1230. ' bitmap
  1231.  
  1232. Public Const DIB_SAVE_WINDOW = True
  1233. Public Const DIB_SAVE_CLIENT = False
  1234.  
  1235. Type tagRECT
  1236.    Left                 As Long
  1237.    Top                  As Long
  1238.    Right                As Long
  1239.    Bottom               As Long
  1240. End Type
  1241.  
  1242. Declare Function cDIBSaveScreen Lib "t2win-32.dll" (ByVal lpFilename As String) As Integer
  1243. Declare Function cDIBSaveWindow Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal SaveArea As Integer, ByVal lpFilename As String) As Integer
  1244. Declare Function cShadeRect Lib "t2win-32.dll" (ByVal hDC As Long, lpRect As tagRECT) As Integer
  1245. Declare Function cTileBitmapOnWindow Lib "t2win-32.dll" (ByVal hWnd As Long, ByVal lpFilename As String) As Integer
  1246.  
  1247. ' hook keyboard
  1248.  
  1249. Declare Function cInstallHookKeyboard Lib "t2win-32.dll" (ByVal InstallRemove As Integer) As Integer
  1250.  
  1251. ' printer
  1252.  
  1253. Public Const EPJ_SUCCESS = -1
  1254. Public Const EPJ_PRINTER_NAME_EMPTY = 1
  1255. Public Const EPJ_CANT_OPEN_PRINTER = 2
  1256. Public Const EPJ_STRANGE_ERROR = 3
  1257. Public Const EPJ_CANT_ENUMERATE_MORE_JOBS = 4
  1258.  
  1259. Public Const JOB_STATUS_PAUSED = &H1
  1260. Public Const JOB_STATUS_ERROR = &H2
  1261. Public Const JOB_STATUS_DELETING = &H4
  1262. Public Const JOB_STATUS_SPOOLING = &H8
  1263. Public Const JOB_STATUS_PRINTING = &H10
  1264. Public Const JOB_STATUS_OFFLINE = &H20
  1265. Public Const JOB_STATUS_PAPEROUT = &H40
  1266. Public Const JOB_STATUS_PRINTED = &H80
  1267. Public Const JOB_STATUS_DELETED = &H100
  1268. Public Const JOB_STATUS_BLOCKED_DEVQ = &H200
  1269. Public Const JOB_STATUS_USER_INTERVENTION = &H400
  1270.  
  1271. Type tagJOBINFO
  1272.    sPrinterName         As String      'name of the printer for which the job is spooled
  1273.    sMachineName         As String      'name of the machine that created the print job
  1274.    sUserName            As String      'name of the user who owns the print job
  1275.    sDocument            As String      'name of the print job (for example, "MS-WORD: Review.doc")
  1276.    lJobId               As Long        'job identifier value
  1277.    lStatus              As Long        'job status (multiple OR of JOB_STATUS_x)
  1278.    lPriority            As Long        'job priority (1 : minimum; 99 : maximum)
  1279.    lPosition            As Long        'job's position in the print queue
  1280.    lStartTime           As Long        'earliest time that the job can be printed
  1281.    lUntilTime           As Long        'latest time that the job can be printed
  1282.    lTotalPages          As Long        'number of pages required for the job
  1283.    lSize                As Long        'size, in bytes, of the job
  1284.    lTime                As Long        'total time, in seconds, that has elapsed since the job began printing
  1285.    lPagesPrinted        As Long        'number of pages that have printed
  1286.    wYear                As Integer     'year of the job submitted
  1287.    wMonth               As Integer     'month of the job submitted
  1288.    wDay                 As Integer     'day of the job submitted
  1289.    wHour                As Integer     'hour of the job submitted
  1290.    wMinute              As Integer     'minute of the job submitted
  1291.    wSecond              As Integer     'second of the job submitted
  1292. End Type
  1293.  
  1294. Declare Function cEnumPrinterJobs Lib "t2win-32.dll" (ByVal PrinterName As String, JOBINFO As tagJOBINFO, ByVal FirstNext As Integer) As Integer
  1295.